package lab02.test24;

import java.util.Calendar;
import java.util.Scanner;

/**
 * Created by 唐苗苗 on 2017/11/1.
 */
public class Test {
    public static void main(String[] args) {
        //构造函数
        Scanner scanner= new Scanner(System.in);
        System.out.println("请输入第一个日期：");
        String num =scanner.nextLine();
        String year =num.substring(0,4);
        String month=num.substring(4,6);
        String day=num.substring(6);
        Calendar calendar=Calendar.getInstance();
        System.out.println("请输入第二个日期：");
        num = scanner.nextLine();
        year=num.substring(0,4);
        month=num.substring(4,6);
        day=num.substring(6);
        System.out.println("两个日期之间相差：");

    }
}
